import apiUrl from '../base'
import axios from '@/libs/axios'
const projectInquiry = {
  //获取工程类型
  getListByTypeCode(data) {
    return axios.get(`${apiUrl.base}v1/Dict/getListByTypeCode/`+data)
  },
  //获取机构树
  getEntTree() {
    return axios.post(`${apiUrl.base}v1/OrgTree/tree/onlyEnterpriseFromTop/`)
  },
  //获取风险等级
  getTreeByTypeCode(data) {
    return axios.get(`${apiUrl.base}v1/Dict/getTreeByTypeCode/`+data)
  },
  //获取专业类型
  getWbsList(data){
    return axios.post(`${apiUrl.base}v1/ProfessionalType/list/`,data)
  },
  //获取项目列表
  getProjectList(data){
    return axios.post(`${apiUrl.base}v1/Project/list/`,data)
  },
  //专业类型展示条件
  existWBS() {
    return axios.post(`${apiUrl.base}v1/Menu/existWBS/`)
  },
  //获取项目详情
  getDetail(id){
    return axios.get(`${apiUrl.base}v1/Project/detail/`+id)
  },
  //获取机构树
  getOrgTree() {
    return axios.post(`${apiUrl.base}v1/OrgTree/tree/onlyEnterpriseWithoutOrg/`)
  },
  //获取部门树
  getProTree(data) {
    return axios.get(`${apiUrl.base}v1/OrgTree/tree/searchProjectTeamTreeByPerson/`+data)
  },
  getDepTree(data){
    return axios.post(`${apiUrl.base}v1/OrgTree/tree/searchDeptTree/`+data)
  },
  //获取人员列表
  getPersonList(data) {
    return axios.post(`${apiUrl.base}v1/EnterprisePerson/list`,data)
  },
  //获取用户信息
  getUserDetail() {
    return axios.post(`${apiUrl.base}v1/User/details`)
  },
  //获取人员详情
  getPersonDetail(id){
    return axios.get(`${apiUrl.base}v1/ProjectPerson/detail/`+id)
  },
  //根据经纬度
  getAddressCodeAndDetail(data){
    return axios.post(`${apiUrl.base}/v1/Region/getAddressCodeAndDetail`,data)
  },
};
export default projectInquiry
